<div class="app-modal valign-wrapper">
    <div class="container height100">
        <div class="row height100">
            <div class="col-md-6 col-md-offset-4 height100 valign-wrapper">
                <div class="modal-content" ng-show="!passmode  && !checkSecondPass">
                    <div class="modal-header modal-iconed">
                        <div class="close-modal" ng-click="close()">
                            <span class="sr-only"><translate>Close modal</translate></span>
                        </div>
                    </div>
                    <div class="modal-header clearfix">
                        <div>
                            <h2>{{'Profile Information'|translate}}</h2>
                        </div>
                        <div><translate>Please set your username.</translate></div>
                    </div>
                    <div class="modal-body field-padding">
                        <form ng-submit="passcheck()">
                            <div class="input-field">
                                <input ng-focus="focus=='username'" id="username" type="text" ng-model="username" autofocus>
                                <label for="username"><translate>Username</translate></label>
                            </div>
                            <input type="submit" ng-show="false">
                        </form>
                        <span class="pass-error" ng-show="error && (rememberedPassphrase || presendError)">{{error}}</span>
                    </div>
                    <div class="modal-body">
                        <ul class="nav modal-buttons pull-right">
                            <li>
                                <a href="#" ng-click="close()"><translate>Cancel</translate></a>
                            </li>
                            <li>
                                <a href="#" class="blue-link" ng-click="passcheck()"><translate>save Name</translate></a>
                            </li>
                        </ul>
                    </div>
                </div>
                <div class="modal-content" ng-show="passmode  && !checkSecondPass">
                    <div class="modal-header modal-iconed">
                        <div class="close-modal" ng-click="close()">
                            <span class="sr-only"><translate>Close modal</translate></span>
                        </div>
                    </div>
                    <div class="modal-header clearfix">
                        <div>
                            <h2>{{'Account Verification'|translate}}</h2>
                        </div>
                        <div><translate>Please enter your passphrase below.</translate></div>
                    </div>
                    <div class="modal-body">
                        <div class="field-padding">
                            <form ng-submit="saveName(secretPhrase)">
                                <div class="input-field">
                                    <input ng-focus="focus=='passPhrase'" id="passPhrase" type="password" ng-model="secretPhrase" ng-trim="false" autofocus ng-class="{'invalid': error}">
                                    <label for="passPhrase"><translate>Your Passphrase</translate></label>
                                </div>
                                <input type="submit" ng-show="false">
                            </form>
                            <span class="pass-error" ng-show="error">{{error}}</span>
                        </div>
                        <div class="modal-body">
                            <ul class="nav modal-buttons pull-right">
                                <li>
                                    <a href="#" ng-click="passcheck()"><translate>Back</translate></a>
                                </li>
                                <li>
                                    <a href="#" class="blue-link" ng-click="saveName(secretPhrase)"><translate>confirm</translate></a>
                                </li>
                            </ul>
                        </div>
                    </div>
                </div>
                <div class="modal-content" ng-show="checkSecondPass">
                    <div class="modal-header modal-iconed">
                        <div class="close-modal" ng-click="close()">
                            <span class="sr-only"><translate>Close modal</translate></span>
                        </div>
                    </div>
                    <div class="modal-header clearfix">
                        <div>
                            <h2>{{'Account Verification'|translate}}</h2>
                        </div>
                        <div><translate>Please enter your second passphrase below.</translate></div>
                    </div>
                    <div class="modal-body">
                        <div class="field-padding">
                            <form ng-submit="saveName(secretPhrase, true)">
                                <div class="input-field">
                                    <input ng-focus="focus=='secondPhrase'" id="secondPhrase" type="password" ng-model="secondPhrase" ng-trim="false" autofocus ng-class="{'invalid': errorMessage}">
                                    <label for="secondPhrase"><translate>Your Second Passphrase</translate></label>
                                </div>
                                <input type="submit" ng-show="false">
                            </form>
                            <span class="pass-error" ng-show="error">{{error}}</span>
                        </div>
                    </div>
                    <div class="modal-body">
                        <ul class="nav modal-buttons pull-right">
                            <li>
                                <a href="#" ng-click="passcheck(true)"><translate>BACK</translate></a>
                            </li>
                            <li>
                                <a href="#" class="blue-link" ng-click="saveName(secretPhrase, true)"><translate>confirm</translate></a>
                            </li>
                        </ul>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
